﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DesignPatternDemoCApp.Creational.BuilderPattern
{
    /// <summary>
    /// 具体创建者，具体的车型的创建者，例如：奥迪
    /// </summary>
    public sealed class AoDiBuilder : Builder
    {
        Car aoDiCar = new Car();
        public override void BuildCarDoor()
        {
            aoDiCar.Add("Aodi's 车门");
        }

        public override void BuildCarWheel()
        {
            aoDiCar.Add("Aodi's 车轮");
        }

        public override void BuildCarEngine()
        {
            aoDiCar.Add("Aodi's 引擎");
        }

        public override Car GetCar()
        {
            return aoDiCar;
        }
    }
}
